package com.zfzs.post.modules.finance.service;

import com.zfzs.post.modules.transaction.domain.TransactionInfo;
import com.zfzs.post.modules.transaction.service.dto.BenefitDayQueryCriteria;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 分润业务层
 * @author wq
 * @date 2019/11/27 20:14
 * @description
 */
public interface BenefitWebService {
    /**
     * 添加团队分润记录
     * @param info
     * @param benefit
     * @param benefitAgentId
     */
    void addTeamBenefitDay(TransactionInfo info, BigDecimal benefit, Long benefitAgentId);

    /**
     * 添加个人分润记录
     * @param info
     * @param benefit
     */
    void addSelfBenefitDay(TransactionInfo info, BigDecimal benefit);

    /**
     * 添加分润明细
     * @param benefitId
     * @param info
     * @param benefit
     */
    void addSelfBenefitInfo(Long benefitId, TransactionInfo info, BigDecimal benefit);

    /**
     * 分页查询
     * @param criteria
     * @param page
     * @param size
     * @return
     */
    Map<String, Object> getBenefitPage(BenefitDayQueryCriteria criteria, Integer page, Integer size);
}
